package course.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HLF
 * @since 2022-06-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学号
     */
    private Integer sid;

    /**
     * 姓名
     */
    private String sname;

    /**
     * 性别
     */
    private String ssex;

    /**
     * 所属专业id
     */
    private Integer zid;

    /**
     * 学生登录密码
     */
    private String spassword;



    public Student(Integer sid, String sname, String ssex, Integer zid) {
        this.sid = sid;
        this.sname = sname;
        this.ssex = ssex;
        this.zid = zid;
        this.spassword = "$2a$10$W8iLBJpGD8O/rFjeK3Gun.mymjKIDSYAL3CW/bGOFVRrEgdp2bjgm";//123456
    }
}
